<!DOCTYPE html>
<html>
<head>
    <title>用户矿机表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div>
        <div class="grid-btn">
        	<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.mobile" @keyup.enter="query"
					placeholder="手机号">
			</div>
			<div class="form-group col-sm-2">
				<select class="form-control" v-model="q.status" @change="query">
					<option value="">矿机状态</option>
					<option value="0">运行中</option>
					<option value="1">结束</option>
					<option value="2">暂停</option>
				</select>
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			<#if shiro.hasPermission("aic:membermachine:update")>
			<a class="btn btn-primary" @click="changeStatus('START')"><i class="fa fa-play"></i>&nbsp;启动矿机</a>
            <a class="btn btn-primary" @click="changeStatus('PAUSE')"><i class="fa fa-pause"></i>&nbsp;暂停矿机</a>
			</#if>
			<#if shiro.hasPermission("aic:membermachine:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除矿机</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/aic/membermachine.js?_${.now?long}"></script>
</body>
</html>